/*
 * @Date: 2025-01-02 11:31:19
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2025-02-06 08:13:12
 * @FilePath: /vue3-admin/src/router/template.ts
 */

const Layout = () => import('@/layout/Layout.vue');

export const templateRoutes: AppRouteRecordRaw[] = [
    {
        path: '/template',
        name: 'Template',
        component: Layout,
        meta: {
            title: '配置',
            icon: 'github'
        },
        children: [
            {
                path: '/template/ganttView',
                name: 'GanttView',
                component: () =>
                    import('@/views/template/GanttView/GanttView.vue'),
                meta: { title: '甘特图案例', icon: 'github', keepAlive: true }
            },
            {
                path: '/template/mapSelect',
                name: 'MapSelect',
                component: () =>
                    import('@/views/template/MapSelect/MapSelect.vue'),
                meta: {
                    title: 'iframe地图选择案例',
                    icon: 'github',
                    keepAlive: true
                }
            }
        ]
    }
];
